﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JingQiao.Ads.Domain.Model.Repository
{
    using Domain.Model.DomainObject;
    using Infrastructure;

    public interface IAdvertisementRepository : IRepository<IAdvertisement>
    {
        bool IsThrowed(int advertisementId);

        IAdvertisement FindById(int id);

        PagedResult<IAdvertisement> FindAll(int pageSize, int pageIndex);

        PagedResult<IAdvertisement> FindByKeyWord(int pageSize, int pageIndex, string keyWord);

        int CountByKeyWord(string keyWord);

        int CountAll();
    }
}
